package com.huawei.appgallery.wishbase.ui.activity;

import android.app.ActionBar;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import androidx.annotation.Nullable;
import com.huawei.appgallery.foundation.ui.framework.activity.BaseActivity;
import o.azb;
import o.cgv;
import o.cjo;
import o.dbm.d;
import o.dbm.e;
import o.evx;

public class WishBaseActivity<T extends cjo> extends BaseActivity {
    public void onCreate(@Nullable Bundle bundle) {
        super.onCreate(bundle);
        cgv.ˋ(this, d.ˎ, d.ˊ);
        getWindow().getDecorView().setBackgroundColor(getResources().getColor(d.ˏ));
    }

    protected void ॱ(String str, int i) {
        ActionBar actionBar = getActionBar();
        if (actionBar != null) {
            actionBar.hide();
        }
        View findViewById = findViewById(i);
        if (findViewById != null) {
            azb.ˏ(findViewById);
            findViewById.setVisibility(0);
            ((TextView) findViewById.findViewById(e.ˏ)).setText(str);
            findViewById.findViewById(e.ॱ).setVisibility(8);
            findViewById.findViewById(e.ˊ).setOnClickListener(new evx(this) {
                final /* synthetic */ WishBaseActivity ˎ;

                {
                    this.ˎ = r1;
                }

                public void ˋ(View view) {
                    this.ˎ.onBackPressed();
                }
            });
        }
    }
}
